<?php
//require_once "authenticate.php";
ob_start();
session_start(); 
  
if(isset($_SESSION['kt_login_id'])== FALSE) { 	
    //    header("location: login.php");
}
$page = trim(strip_tags($_GET['p']));
$module = trim(strip_tags($_GET['m']));
if (isset($module) && $page == '')
    $page = "list";
if ($module == "")
    $module = "customer";
require_once 'model/Customer.php';
$customer = new Customer();
?>
<!DOCTYPE html><!--[if IE 8]><html lang="en" class="ie8"></html><![endif]--><!--[if IE 9]><html lang="en" class="ie9"></html><![endif]--><!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <head>
        <meta charset="utf-8" />
        <title>LAHAVA</title>
        <meta content="width=device-width, initial-scale=1.0" name="viewport" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
        <link href="assets/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet" />
        <link href="assets/bootstrap/css/bootstrap-fileupload.css" rel="stylesheet" />
        <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
        <link href="css/style.min.css" rel="stylesheet" />
        <link href="css/style_responsive.css" rel="stylesheet" />
        <link href="css/style_default.css" rel="stylesheet" id="style_color" />
        <link href="assets/fancybox/source/jquery.fancybox.css" rel="stylesheet" />
        <link rel="stylesheet" type="text/css" href="assets/uniform/css/uniform.default.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />       
	
        <!-- BEGIN JAVASCRIPTS -->
        <!-- Load javascripts at bottom, this will reduce page load time -->
        <script src="js/jquery-1.8.3.min.js"></script>
        <script src="assets/jquery-ui/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>
        <script src="assets/bootstrap/js/bootstrap.min.js"></script>
        <script src="js/jquery.blockui.js"></script>     
        <script type="text/javascript" src="js/form.js"></script>
        <script type="text/javascript" src="js/number.js"></script>
        <!-- ie8 fixes -->
        <!--[if lt IE 9]>
        <script src="js/excanvas.js"></script>
        <script src="js/respond.js"></script>
        <![endif]-->           
               
        <script type="text/javascript" src="assets/uniform/jquery.uniform.min.js"></script>
  
        <script src="js/scripts.js"></script>
        <script src="js/ui-jqueryui.js"></script>
        <script type="text/javascript" src="js/customer.js"></script>
        <script>
           jQuery(document).ready(function() {    
               $('.price').number( true );
               $(".number").format({precision: 0,allow_negative:false,autofix:true});
              // initiate layout and plugins
              App.init();
           });
        </script>

    </head>
    <body class="fixed-top">
            <?php include("blocks/header.php"); ?>
        <div id="container" class="row-fluid">
                <?php include("blocks/sidebar.php"); ?>
            <div id="main-content">
                <?php
                //var_dump($page, $module);
                if ($page == "" || ($page == "list" && $module == ""))
                    include "view/customer/add.php";
                else
                    include "view/" . $module . "/" . $page . ".php";
                ?>	  	
            </div>
        </div>
        <div id="footer"> 2013 &copy; Admin Lab Dashboard.
            <div class="span pull-right"><span class="go-top"><i class="icon-arrow-up"></i></span></div>
        </div>     

    </body>
</html>